package org.zyx.item.bo;

import lombok.Data;
import org.zyx.item.entity.Sku;
import org.zyx.item.entity.Spu;
import org.zyx.item.entity.SpuDetail;
import org.zyx.item.entity.Stock;

import javax.persistence.Transient;
import java.util.List;

/**
 * @Author: SwordMaple
 * @Date: 2020/9/7  20:55
 * @Description: spu业务对象,继承spu对象
 * @Version: 1.0
 */
@Data
public class SpuBo extends Spu {
    @Transient
    private String cname;//category商品分类
    @Transient
    private String bname;//brand品牌名

    //拓展添加商品相关数据
    @Transient
    private SpuDetail spuDetail;//商品集详情
    @Transient
    private List<Sku> skus;//sku集合(不同的规格组合商品)
    @Transient
    private Stock stock; //库存
}
